import request from "@/utils/request";
import { method } from "bluebird";
import { keyword } from "css-tree";
import { SameValue } from "es-abstract/es5";

export default {
  list(page, limit, keyword) {
    return request({
      url: `/admin/core/borrower/list/${page}/${limit}`,
      method: `get`,
      params: {keyword}
    });
  },
  show(id) {
    return request({
        url:`/admin/core/borrower/show/${id}`,
        method: `get`,
    })
  },
  approval(borrowerApproval){
      return request({
        url:`/admin/core/borrower/approval`,
        method: 'post',
        data: borrowerApproval
      })
  }
};
